# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'


post_install do |installer|
   installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
     config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
   end
  end
  
  pre_install do |installer|
    remove_swiftui()
  end

  def remove_swiftui
    system("rm -rf ./Pods/Kingfisher/Sources/SwiftUI")
    code_file = "./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift"
    code_text = File.read(code_file)
    code_text.gsub!(/#if canImport\(SwiftUI\) \&\& canImport\(Combine\)(.|\n)+#endif/,'')
    system("rm -rf " + code_file)
    aFile = File.new(code_file, 'w+')
    aFile.syswrite(code_text)
    aFile.close()
  end

  
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  source 'https://gitee.com/YiZhiSongShu/PanKitSpec.git'
  source 'https://gitee.com/mirrors/CocoaPods-Specs.git' 
  source 'https://gitee.com/YiZhiSongShu/aliyun-specs.git'
  source 'https://codeup.aliyun.com/uewell/iosFuncationModelSpec.git'

target 'XGamesLive' do
  # Comment the next line if you don't want to use dynamic frameworks

  
  # source 'https://github.com/TencentCloud/TPNS-iOS-CocoaPods.git'

# Networking
  pod 'PanKit'

# 
  pod 'Permission/Location'


# Other
  pod 'MXCommonModule'
  pod 'Kingfisher'
  pod 'CYLTabBarController'
  pod 'SwifterSwift'
  pod 'NVActivityIndicatorView'
  pod 'SnapKit'
  pod 'CollectionKit'
  pod "CollectionKit/WobbleAnimator"
  pod 'SwiftDate'
  pod 'MJRefresh'
  pod 'EmptyDataSet-Swift'
  pod 'IQKeyboardManagerSwift'
  pod 'TZImagePickerController'
  pod 'TYAttributedLabel'
  pod 'FSPagerView'
  pod 'RSKGrowingTextView' 
  pod 'JXPhotoBrowser'
  pod 'SwiftyStoreKit'
  pod 'SwiftyRSA'
end
